import request from '@/utils/request'

// 菜品：获取菜品列表
export const dishGetListService = (params) =>
  request.get('/dish/list', {
    params
  })

// 菜品：添加菜品
// 注意：data需要是一个formData格式的对象
export const dishPublishService = (data) => request.post('/dish/save', data)

// 菜品：获取菜品详情
export const dishGetDetailService = (id) => request.get('/dish/' + id)

// 菜品：删除菜品
export const dishDelService = (id) => request.delete('/dish/delete/' + id)
